
const movie = {
    movieList : []
}
export const movieReducer = (prevState = movie,action)=> {
    const {type,data} = action
    switch(type){
        case 'getMoviemsg':
            return{
                ...prevState,movieList:data
            }
    }
    return prevState
}